package com.carlinfo.stu_ques.users.pojo;

/**
 * 
 * 属性:id,等级,名字,性别,生日,老家,毕业学校,分数,提问的总次数,正确次数,错误次数;正确率;(今日总次数,今日正确次数,今日正确率)创建时间,结束时间
 * 
 */
import java.io.Serializable;
import java.util.Date;
import com.carlinfo.stu_ques.common.util.DateUtil;

public class Students implements Serializable
{
	private int id;
	private String name;
	private String sex;
	private Date birth;
	private String graduateSchool;
	private double level;
	private Date createTime;
	private Date updateTime;
	private int totalConut;
	private int countTrue;
	private int countFalse;
	private double accuracy;
	private int todayCount;
	private int todayTrueCount;
	private int todayFalseCount;
	private double todayAccuracy;

	/* id,姓名,身高,创建时间,更新时间,爱好 */
	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public String getSex()
	{
		return sex;
	}

	public void setSex(String sex)
	{
		this.sex = sex;
	}

	public Date getBirth()
	{
		return birth;
	}

	public void setBirth(Date birth)
	{
		this.birth = birth;
	}

	public String getGraduateSchool()
	{
		return graduateSchool;
	}

	public void setGraduateSchool(String graduateSchool)
	{
		this.graduateSchool = graduateSchool;
	}

	public double getLevel()
	{
		return level;
	}

	public void setLevel(double level)
	{
		this.level = level;
	}

	public int getTotalConut()
	{
		return totalConut;
	}

	public void setTotalConut(int totalConut)
	{
		this.totalConut = totalConut;
	}

	public int getCountTrue()
	{
		return countTrue;
	}

	public void setConutTrue(int countTrue)
	{
		this.countTrue = countTrue;
	}

	public int getCountFalse()
	{
		return countFalse;
	}

	public void setCountFalse(int countFalse)
	{
		this.countFalse = countFalse;
	}

	public double getAccuracy()
	{
		return accuracy;
	}

	public void setAccuracy(double accuracy)
	{
		this.accuracy = accuracy;
	}

	public int getTodayCount()
	{
		return todayCount;
	}

	public void setTodayCount(int todayCount)
	{
		this.todayCount = todayCount;
	}

	public int getTodayTrueCount()
	{
		return todayTrueCount;
	}

	public void setTodayTrueCount(int todayTrueCount)
	{
		this.todayTrueCount = todayTrueCount;
	}

	public int getTodayFalseCount()
	{
		return todayFalseCount;
	}

	public void setTodayFalseCount(int todayFalseCount)
	{
		this.todayFalseCount = todayFalseCount;
	}

	/* id,姓名,性别,生日,毕业院校,分数, 总次数，正确次数，错误次数，正确率，今日次数，今日答对，今日答错，今日正确率，创建时间，更新时间 */
	@Override
	public String toString()
	{
		DateUtil dateUtil = new DateUtil();
		return getId() + "\t" + getName() + "\t" + sex + "\t" + getGraduateSchool() + "\t\t" + getLevel() + "\t"
				+ getTotalConut() + "\t" + getCountTrue() + "\t" + getCountFalse() + "\t\t" + getAccuracy() + "\t"
				+ getTodayTrueCount() + "\t" + getTodayFalseCount() + "\t" + getTodayAccuracy() + "\t\t"
				+ dateUtil.dateTimeToStr(getCreateTime()) + "\t" + dateUtil.dateTimeToStr(getUpdateTime());
	}

	public double getTodayAccuracy()
	{
		return todayAccuracy;
	}

	public void setTodayAccuracy(double todayAccuracy)
	{
		this.todayAccuracy = todayAccuracy;
	}
}
